import http from '@/common/api/http'

export function getNewsList(params = {}) {
	return http.get("/getTitle", {
		params
	})
}

export function getNewsType() {
	return http.get("/getTitleType");
}

export function getNewsInfo(id) {
	return http.get("/titleDetail?id=" + id);
}

export function getSingleNews(params) {
	return http.get('/news/getsinglenews', {
		params
	})
}

export function readNews(id) {
	return http.get("/incReadNum?id=" + id);
}



export function putnewsread(params) {
	return http.put('/news/putnewsread', {
		params
	})
}

export function putNewsPageviewsIncrease(params) {
	return http.put('/news/putnewspageviewsincrease', {
		params
	})
}